package com.cunshe.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * 登陆用户
 * @author xiao
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserInsertVO implements Serializable {

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "[username]不能为空")
    @Size(max = 255, message = "${validatedValue}长度不能大于{max}")
    private String username;

    /**
     * 登陆账号
     */
    @ApiModelProperty(value = "登陆账号")
    @NotBlank(message = "[loginid]不能为空")
    @Size(max = 32, message = "${validatedValue}长度不能大于{max}")
    private String loginid;

    /**
     * 登陆密码
     */
    @ApiModelProperty(value = "登陆密码")
    @NotBlank(message = "[password]不能为空")
    @Size(max = 64, message = "${validatedValue}长度不能大于{max}")
    private String password;

    /**
     * 状态
     * 0正常 1禁用
     * {@link com.cunshe.common.DictConsts}
     */
    @ApiModelProperty(value = "状态 0正常 1禁用")
    @NotNull(message = "[status]不能为空")
    private Integer status;

    private static final long serialVersionUID = 1L;
}